 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <link href="../../../eui/plugins/layui/css/layui.css" rel="stylesheet" media="all" />
    <link href="../../../eui/css/components.min.css" rel="stylesheet" media="all" />
    <link href="../../../eui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" media="all" />
</head>

<body>
 <div class="portlet light" id="form_wizard_1">
     <form class="layui-form"style="padding-top: 20px">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">股票代码：</label>
                    <div class="layui-input-inline" >
                        <input type="text" name="stockCode"  class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">股票名称：</label>
                    <div class="layui-input-inline" >
                        <input type="text" name="stockName"  class="layui-input">
                    </div>
                </div>
	             <div class="layui-inline">
	               <label class="layui-form-label" >交易状态：</label>
	               <div class="layui-input-inline" >
						<select id="status" name="status" lay-filter="status">
						</select>
	               </div>
	            </div>
            </div>
            <div class="layui-form-item">
               	<div class="layui-inline">
					<label class="layui-form-label" style="width:100px">起始日期：</label>
					<div class="layui-input-inline">
						<input id="startDate" type="text" name="startDate" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width:100px">结束日期：</label>
					<div class="layui-input-inline">
						<input id="endDate" type="text" name="endDate" autocomplete="off" class="layui-input">
					</div>
				</div>
                <div class="layui-inline">
          	 	  <button type="button" class="layui-btn" lay-submit="" lay-filter="search" id="searchButton"><i class="fa fa-search"></i> 查询</button>
                  <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="add"><i class="fa fa-plus-circle"></i> 新增交易</button>
        	 	</div>
            </div>
     </form>
     <div class="portlet-body">
         <div class="dataTables_wrapper" style="margin-top: 0px!important" >
             <table class="layui-hide" id="listTable" lay-filter="listTable"></table>
         </div>
		   <div class="dataTables_wrapper" style="margin-top: 0px!important" >
			&nbsp;&nbsp;&nbsp;买入总数量：<span class="bold font-red-sunglo" id="buyVSum" ></span>&nbsp;股
			&nbsp;&nbsp;&nbsp;买入总金额：<span class="bold font-red-sunglo" id="buySum" ></span>&nbsp;元
			,&nbsp;&nbsp;&nbsp;卖出总金额：<span class="bold font-red-sunglo" id="sellSum" ></span>&nbsp;元
			,&nbsp;&nbsp;&nbsp;当前持有：<span class="bold font-red-sunglo" id="holdingAmount" ></span>&nbsp;元
			,&nbsp;&nbsp;&nbsp;当前持有数量：<span class="bold font-red-sunglo" id="holdingVol" ></span>&nbsp;股
			,&nbsp;&nbsp;&nbsp;当前持有均价：<span class="bold font-red-sunglo" id="holdingPrice" ></span>&nbsp;元
			,&nbsp;&nbsp;&nbsp;总盈利：<span class="bold font-red-sunglo" id="profitSum" ></span>&nbsp;元
			,&nbsp;&nbsp;&nbsp;总收益率：<span class="bold font-red-sunglo" id="yieldRate" ></span>&nbsp;
		</div>
     </div>
 </div>
<!-- END EXAMPLE TABLE PORTLET-->
<script src="../../../eui/plugins/jquery.min.js"></script>
<script src="../../../eui/plugins/layui/layui.all.js"></script>
<script src="../../../eui/js/base.js"></script>
<script src="tradeList.js"></script>
<!--操作部分-->
<script type="text/html" id="operBar">
    <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="edit('{{ d.id }}','0')"><i class="fa fa-edit"></i>编辑 </button>
    <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" onclick="del('{{ d.id }}')"><i class="fa fa-remove"></i>删除 </button>
</script>
</body>
</html>